package com.uzai.console.vo.user.useraccdetail;

import com.uzai.console.common.utils.Tools;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月27日 16:14
 */
@ApiModel("分页查询微信用户账户明细列表")
public class UserAccDetailInfoVo {
    @ApiModelProperty("主键ID")
    private Long id;
    @ApiModelProperty("微信昵称")
    private String  nickName;
    @ApiModelProperty("变更积分")
    private Integer  changeInte;
    @ApiModelProperty("变动后积分")
    private Integer  newInte;
    @ApiModelProperty("变更余额")
    private Double  changeBal;
    @ApiModelProperty("变动后余额")
    private Double  newBal;
    @ApiModelProperty("明细类型名称")
    private String  typeName;
    @ApiModelProperty("订单编号/商户订单号")
    private String  orderIdTradeno;
    @ApiModelProperty("备注")
    private String  remark;
    @ApiModelProperty("日期")
    private Integer  createTime;
    @ApiModelProperty("来源用户id")
    private Long  sourceUserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getNewInte() {
        return newInte;
    }

    public void setNewInte(Integer newInte) {
        this.newInte = newInte;
    }

    public Integer getChangeInte() {
        return changeInte;
    }

    public void setChangeInte(Integer changeInte) {
        this.changeInte = changeInte;
    }

    public Double getChangeBal() {
        return changeBal;
    }

    public void setChangeBal(Double changeBal) {
        this.changeBal = changeBal;
    }

    public Double getNewBal() {
        return newBal;
    }

    public void setNewBal(Double newBal) {
        this.newBal = newBal;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getOrderIdTradeno() {
        return orderIdTradeno;
    }

    public void setOrderIdTradeno(String orderIdTradeno) {
        this.orderIdTradeno = orderIdTradeno;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Long getSourceUserId() {
        if(Tools.getLong(sourceUserId).longValue() == 0){
            sourceUserId = null;
        }
        return sourceUserId;
    }

    public void setSourceUserId(Long sourceUserId) {
        this.sourceUserId = sourceUserId;
    }
}
